.class Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;
.super Ljava/lang/Object;
.source "BarUpdater.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)V
    .locals 0

    .line 64
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .line 70
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->access$000(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 74
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnableTimeListener:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;

    if-eqz v0, :cond_5

    .line 75
    invoke-interface {v0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;->onLocationRequested()Landroid/location/Location;

    move-result-object v0

    .line 76
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    iget-object v1, v1, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnableTimeListener:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;

    invoke-interface {v1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;->onAreaRequested()D

    move-result-wide v1

    .line 77
    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    iget-object v3, v3, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnableTimeListener:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;

    invoke-interface {v3}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;->onPathRequested()D

    move-result-wide v3

    .line 78
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v5

    invoke-virtual {v5}, Llt/noframe/gpsfarmguide/Data;->getNavigationBottom()Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    move-result-object v5

    if-eqz v5, :cond_5

    if-eqz v0, :cond_4

    .line 84
    invoke-virtual {v0}, Landroid/location/Location;->getProvider()Ljava/lang/String;

    move-result-object v6

    const-string v7, "external_gps_provider"

    invoke-virtual {v7, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    const/4 v7, 0x1

    const/4 v8, 0x0

    if-eqz v6, :cond_2

    .line 85
    invoke-virtual {v0}, Landroid/location/Location;->getAccuracy()F

    move-result v6

    .line 86
    invoke-virtual {v0}, Landroid/location/Location;->getAccuracy()F

    move-result v9

    float-to-double v9, v9

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v11

    invoke-static {v11}, Llt/noframe/gpsfarmguide/utils/Preferences;->getMinimalGpsAccuracy(Landroid/content/Context;)D

    move-result-wide v11

    const-wide/high16 v13, 0x4000000000000000L    # 2.0

    div-double/2addr v11, v13

    cmpl-double v13, v9, v11

    if-lez v13, :cond_1

    const/4 v8, 0x1

    .line 85
    :cond_1
    invoke-virtual {v5, v7, v6, v8}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setAccuracyValue(ZFZ)V

    goto :goto_1

    .line 88
    :cond_2
    invoke-virtual {v0}, Landroid/location/Location;->getAccuracy()F

    move-result v6

    .line 89
    invoke-virtual {v0}, Landroid/location/Location;->getAccuracy()F

    move-result v9

    float-to-double v9, v9

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v11

    invoke-static {v11}, Llt/noframe/gpsfarmguide/utils/Preferences;->getMinimalGpsAccuracy(Landroid/content/Context;)D

    move-result-wide v11

    cmpl-double v13, v9, v11

    if-lez v13, :cond_3

    goto :goto_0

    :cond_3
    const/4 v7, 0x0

    .line 88
    :goto_0
    invoke-virtual {v5, v8, v6, v7}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setAccuracyValue(ZFZ)V

    .line 91
    :goto_1
    invoke-virtual {v0}, Landroid/location/Location;->getSpeed()F

    move-result v0

    invoke-virtual {v5, v0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setSpeedValue(F)V

    .line 94
    :cond_4
    invoke-virtual {v5, v1, v2}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setAreaValue(D)V

    .line 95
    invoke-virtual {v5, v3, v4}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setPathValue(D)V

    .line 97
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->access$100(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 98
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    invoke-static {v2}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->access$200(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)J

    move-result-wide v2

    sub-long/2addr v0, v2

    invoke-virtual {v5, v0, v1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setTimeValue(J)V

    .line 102
    :cond_5
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->access$400(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;->this$0:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;

    invoke-static {v1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->access$300(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Ljava/lang/Runnable;

    move-result-object v1

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method
